home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 5 / Apprentice-Release5.iso / Source Code / Libraries / Dots & Pixels / headers / outputfile.h < prev    next >
C/C++ Source or Header  |  1995-09-29  |  514b  |  28 lines

  1. #pragma once
  2. //
  3. // my first stream subclass!! (if it worked)
  4. //
  5. #define it_doesnt_work
  6.  
  7. #ifdef it_doesnt_work
  8.     class outputfile
  9. #else
  10.     class outputfile : public ofstream
  11. #endif
  12. {
  13.     public:
  14.         //
  15.         // Note: the name_locked flag only makes sense on a Macintosh
  16.         //
  17.         outputfile( char *postfix, Boolean name_locked = true);
  18.         
  19.         char *operator()() const;
  20.     
  21.     private:
  22.         char filename[ 256];
  23.  
  24.         static void set2chars( const int n, char *two_chars);
  25.         
  26.         static void setoutfilename( char *yymmdd_hhmmss_plus_postfix);
  27. };
  28.